package com.t2t.top.service.impl;

import com.t2t.top.model.po.User;
import org.springframework.beans.factory.support.MethodReplacer;

import java.lang.reflect.Method;

public class MethodReplace implements MethodReplacer {

    public Object reimplement(Object obj, Method method, Object[] args)throws Throwable {
        System.out.println("方法已经被替换!");
        User u = new User();
        u.setName("ypf");
        return u;
    }
}